package com.yixin.hospital.service;

import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.GodownDrug;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.entity.dto.req.purchaseorder.GoDownDrugReqDTO;
import com.yixin.hospital.entity.vo.GoDownDrugVo;
import com.yixin.hospital.entity.vo.PurchaseOrderDetailVO;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

/**
* @author Administrator
* @description 针对表【godown_drug(入库药品表)】的数据库操作Service
* @createDate 2024-04-12 16:58:41
*/
public interface GodownDrugService extends IService<GodownDrug> {

    ApiResult<?> allList(HttpServletRequest request, int currentPage, int pageSize);

    ApiResult<?> listInfo(String code);

    ApiResult<PurchaseOrderDetailVO> detail(int id, int deptId);

    ApiResult<?> goDownDrug2(@Valid GoDownDrugReqDTO goDownDrugReqDTO, String userName);

    ApiResult<?> goDownCostPrice(@Valid GoDownDrugVo goDownDrug, String userName);
}
